<?php
namespace app\index\model;

use think\Model;

class UserCharacter extends Model
{

    protected $connection = ['prefix' => 'd_'];

    //重写父类初始化方法
    protected function initialize()
    {

        //继承父类initialize()
        parent::initialize();
        $this->table = 'd_user_character';
    }

}
